package vns.client.view;

import vns.client.presenter.SupperAdminPresenter;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiHandler;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.Widget;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.PasswordTextBox;

public class SupperAdminUI extends Composite implements
		SupperAdminPresenter.Display {

	private static SupperAdminUIUiBinder uiBinder = GWT
			.create(SupperAdminUIUiBinder.class);
	@UiField
	TextBox txtEmail;
	@UiField
	PasswordTextBox txtPass;
	@UiField
	Button btUpdate;
	@UiField
	Button btLogin;
	@UiField
	Button btCancel;
	@UiField
	HTML hLogOut;

	interface SupperAdminUIUiBinder extends UiBinder<Widget, SupperAdminUI> {
	}

	public SupperAdminUI() {
		initWidget(uiBinder.createAndBindUi(this));
	}

	@UiHandler("btUpdate")
	void onBtUpdateClick(ClickEvent event) {
	}

	@UiHandler("btCancel")
	void onBtCancelClick(ClickEvent event) {
	}

	@Override
	public Button getUpdateButton() {
		return btUpdate;
	}

	@Override
	public Button getCancelButton() {
		return btCancel;
	}

	@Override
	public String getEmail() {
		return txtEmail.getValue();
	}

	@Override
	public String getPassword() {
		return txtPass.getValue();
	}

	@Override
	public Button getLoginButton() {
		return btLogin;
	}

	@Override
	public HTML getLogOutURL() {
		return hLogOut;
	}

}
